loans-api icon

loans-api

(0 reviews)

Get Loans Details

Description: This endpoint is used to get the loan details based on loanId. The loanId being passed in path parameter..

Channel sends the request to mulesoft with the path parameter "id". Mulesoft will send the request to T24 IRIS and get back the result.

A response is sent back to the channel immediately. If transaction fails due to any reason, a proper error is sent back to the API consuming channel to both REST using the error codes defined.

Mulesoft Request:

Headers:

Mandatory Headers: x-channel-id, x-correlation-id, client_id, Authorization

Optional Headers: x-sub-channel-id, x-user-id, client_secret, x-debug-flag, x-debug-flag, x-customer-id, x-bank-id

Paramaters:
URI Params: /{id}/
Query Params: NA

Content-type: application/json

Mulesoft Response:

Success Response: (200)

{
    "status": {
        "success": true,
        "code": "200",
        "reasonCode": "",
        "arabicMessage": "تمت العملية بنجاح",
        "englishMessage": "The Operation has been Successfully Completed"
    },
    "response": {
        "customers": [
            {
                "customerId": "1000067570"
            }
        ],
        "loans": [
            {
                "accountId": "AA220683ND7Q",
                "branchCode": "IQ0010001",
                "contractDate": "20220309",
                "maturityDate": "20230309",
                "term": "12M",
                "productGroup": "NBI Retail Loans",
                "productId": "NBI.PERSONAL.REDUCING",
                "productName": "Personal Reducing Loan",
                "currency": "IQD",
                "contractAmount": "100000",
                "outstandingAmount": "52008.549",
                "nextPaymentDate": "20221009",
                "nextPaymentAmount": "18893.485",
                "numberOfFutureInstallments": "6",
                "totalNumberOfSettledBills": "0",
                "totalNumberOfDues": "12",
                "totalOverdueDays": "176",
                "category": "3128",
                "totalDueAmount": "100",
                "payinAccountNumber": "2100120458",
                "payoutAccountNumber": "2100120458",
                "accruedPrincipalInterest": "431.96",
                "accruedPenalty": "0",
                "principalDue": "0",
                "principalInterestDue": "0",
                "chargeDue": "0",
                "totalAvailableLimit": "0"
            }
        ]
    }
}

Reviews